package ljt.music.request;


import java.util.List;
import java.util.Map;

import ljt.music.bean.LyricBean;
import ljt.music.bean.PlayList;
import ljt.music.bean.SreachBean;
import ljt.music.bean.URLBean;
import ljt.music.bean.UserList;

import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * @author 刘镓旗
 * @date 2017/11/16
 * @description 请求接口
 */
public interface ApiService {

  /**
   * 请求天气接口
   *
   * @return Call
   */
  @GET("jztk/queryPlayList?key=9693fa3f84f5b725837a374adba598f0")
  Call<String> requestWeather(@Query("subject") int subject,
                              @Query("model") String model,
                              @Query("testType") String testType);

  @GET("http://is.snssdk.com/wenda/v1/native/feedbrow/?iid=10344168417&device_id=36394312781&category=question_and_answer&wd_version=5&count=20&aid=13")
  Call<String> getWenda(
      //String.valueOf(System.currentTimeMillis() / 1000);
      @Query("max_behot_time") String maxBehotTime);


  @GET("http://ddgou.top/Android/crazymusic/yyksite.txt")
  Call<String> get();

  @POST("api.php")
  @FormUrlEncoded
  Call<PlayList> queryPlayList(@FieldMap Map<String, Object> map);

  @POST("api.php")
  @FormUrlEncoded
  Call<URLBean> queryURLBean(@FieldMap Map<String, Object> map);

  @POST("api.php")
  @FormUrlEncoded
  Call<LyricBean> queryLyricBean(@FieldMap Map<String, Object> map);

  @POST("api.php")
  @FormUrlEncoded
  Call<UserList> queryUserList(@FieldMap Map<String, Object> map);

  @POST("api.php")
  @FormUrlEncoded
  Call<List<SreachBean>> search(@FieldMap Map<String, Object> map);
}
